var t = getApp();

Page({
    data: {
        id: 0,
        active: 0,
        operationBoxIndex: null,
        info: {}
    },
    onLoad: function(t) {
        this.data.id = t.id, this.getData();
    },
    setOperationBoxIndex: function(t) {
        var e = t.currentTarget.dataset.index;
        e != this.data.operationBoxIndex ? this.setData({
            operationBoxIndex: e
        }) : this.setData({
            operationBoxIndex: null
        });
    },
    changeTags: function(t) {
        this.setData({
            active: t.detail.name
        }), this.getData();
    },
    onReady: function() {},
    getData: function() {
        var e = this, n = "";
        n = 0 == this.data.active ? t.getNetAddresss("plugin.customer-development.Frontend.controllers.detail.once") : t.getNetAddresss("plugin.customer-development.Frontend.controllers.detail.many"), 
        t._getNetWork({
            url: n,
            data: {
                id: this.data.id
            },
            success: function(n) {
                var a = n.data;
                if (1 != a.result) return t.tips(a.msg);
                e.setData({
                    info: a.data.member_cards
                }), wx.setNavigationBarTitle({
                    title: a.data.plugin_name ? a.data.plugin_name : "拓客卡"
                });
            }
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});